package C04;

public class User {
    private String userName ;
    private String password;

    public User() {
    }

    public User(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }



    public boolean operation(String userNameParam, String passwordParam){
        System.out.println("传回来的用户名："+userNameParam);
        System.out.println("传回来的密码："+passwordParam);
        if (userName.equals(userNameParam) && password.equals(passwordParam)){
            return true;
        }else {
            return false;
        }
    }


}
